package com.tanhua.dubbo.mappers;

import cn.hutool.system.UserInfo;
import com.tanhua.model.domain.Exam;
import com.tanhua.model.domain.Options;
import com.tanhua.model.domain.Report;
import com.tanhua.model.dto.ExamDTO;
import com.tanhua.model.vo.QuestionsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *
 */
public interface MeasuringSoulMapper {
    List<ExamDTO> selectExamReportByUserId(Long userId);

    List<QuestionsVO> selectQuestionsAndOptionsByExamId(@Param("examId") Long examId,@Param("level") String level);

    Exam selectExamByQuestionsLevel(String questionId);

    Options selectOptionsById(Long aLong);

    Report selectReportByScore(int totalScore);

    void saveExamRelReport(Map<String,Object> userExam);

    List<UserInfo> selectUserInfoByReportId(Integer id);
}
